package com.ruoyi.project.wx.dao;


import com.ruoyi.project.wx.domain.MemberUserDO;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 用户,会员
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-05-22 15:32:07
 */
@Mapper
public interface MemberUserDao {

	MemberUserDO get(String id);
	
	List<MemberUserDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(MemberUserDO memberUser);
	
	int update(MemberUserDO memberUser);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	int getFansNum(Map<String, Object> map);

	List<Map<String,Object>> getMyFans(Map<String, Object> map);

	MemberUserDO queryByOpenid(String openId);

	List<Map<String,Object>> getOrderEcharts(Map<String,Object> map);

	List<Map<String,Object>> allMoneyEcharts(Map<String,Object> map);

	List<Map<String,Object>> allUserEcharts(Map<String,Object> map);

	MemberUserDO getByCode(String code);

	List<Map<String,Object>> getMoneyListByUser(Map<String,Object> map);

	int getMoneyListByUserCount(Map<String, Object> map);

	List<Map<String,Object>> getMyFansH(Map<String,Object> map);

	int getMyFansHCount(Map<String, Object> map);

	BigDecimal getShoppingNum(Map<String,Object> map);

	List<Map<String,Object>> getShoppingList(Map<String,Object> map);

	int getShoppingListCount(Map<String, Object> map);

	MemberUserDO findByPhone(String string);

	List<Map<String, Object>> findUpUser();

	List<MemberUserDO> findByLevelNotD(HashMap hashMap);

	List<MemberUserDO> findByLevel(Integer level);


    Map<String, Object> getUserInfo(String userId);

    List<MemberUserDO> likeList(Map<String, Object> stringObjectMap);
}
